//**************************************//
//                                      //
//                                      //
//**************************************//
#ifndef __eLine__
#define __eLine__

#include "../mElements.h"

class Image;

//*********//
class element;

//*********************************************************************//
//**
//**                eLine element 13.12.2012
//**
//*********************************************************************//
class eLine :public element
{
public:
    void cArea();
    bool Collision(mVertexArray *A,eCircle);
    bool Collision(mVertexArray *A,eRay);

    bool Match(eLine);

    bool CutterLeftOvers(Image *,eCircle);
    //info
    bool Connection(mVertex *point,mVertex *center,int *type);
    double Distance(double x,double y);

     //GetData
     mVertexArray ToArray(double accu=0.01);
    uint T(){return e_Line;};
    wxString Info();
};
eLine eL(mVertex p1 , mVertex p2,wxString L=_("0"));

#endif
